package com.bjpowernode.crm.workbench.service.impl;

import com.bjpowernode.crm.workbench.domain.ClueActivityRelation;
import com.bjpowernode.crm.workbench.mapper.ClueActivityRelationMapper;
import com.bjpowernode.crm.workbench.service.ClueActivityRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName : ClueActivityRelationServiceImpl
 * @Author : 司猫子
 * @Date: 2021/1/10 21:14
 */
@Service
public class ClueActivityRelationServiceImpl implements ClueActivityRelationService {
    @Autowired
    private ClueActivityRelationMapper  clueActivityRelationMapper;


    public int deleteByPrimaryKey(String id) {
        return clueActivityRelationMapper.deleteByPrimaryKey(id);
    }

    public int insert(ClueActivityRelation record) {
        return clueActivityRelationMapper.insert(record);
    }

    public int insertSelective(ClueActivityRelation record) {
        return clueActivityRelationMapper.insertSelective(record);
    }

    public ClueActivityRelation selectByPrimaryKey(String id) {
        return clueActivityRelationMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(ClueActivityRelation record) {
        return clueActivityRelationMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(ClueActivityRelation record) {
        return clueActivityRelationMapper.updateByPrimaryKey(record);
    }

    public int insertClueActivityRelationByList(List<ClueActivityRelation> relationList) {
        return clueActivityRelationMapper.insertClueActivityRelationByList(relationList);
    }

    public int deleteClueActivityRelationByClueIdActivityId(ClueActivityRelation relation) {
        return clueActivityRelationMapper.deleteClueActivityRelationByClueIdActivityId(relation);
    }

    public List<ClueActivityRelation> selectClueActivityRelationByClueId(String clueId) {
        return clueActivityRelationMapper.selectClueActivityRelationByClueId(clueId);
    }

    public int deleteClueActivityRelationByClueId(String clueId) {
        return clueActivityRelationMapper.deleteClueActivityRelationByClueId(clueId);
    }
}
